package com.rc.saas.mini.common.level;


import com.rc.saas.mini.common.constant.WebConstant;

/**
 * Create by Yang on 2019/4/12
 * <p>
 * 用户等级常用常量
 */
public class UserLevelConstant {

    //用户等级
    public static final String PROMOTEWAY_DEVELOP = WebConstant.CON1;  //用户等级的成长方式 : 养成
    public static final String PROMOTEWAY_SHOP = WebConstant.CON2;  //用户等级的成长方式 : 购买
    public static final String PROMOTEWAY_DEVELOP_SHOP = WebConstant.CON3;  // 养成 + 购买
    public static final String PROMOTEWAY_LOYAL_FANS = "4";  // 铁粉

    //普通用户对应的等级ID
    public static final Long COMMON_USER = 1L;  // 普通用户等级ID


    // 用户等级的记录
    public static final String LEVEL_TYPE_VIP = WebConstant.CON1;  //  普通用户等级
    public static final String LEVEL_TYPE_SVIP = WebConstant.CON2; //超级用户等级

    //
    public static final String STATUS_NORMAL = WebConstant.CON1;  // 状态1正常
    public static final String STATUS_DEL = WebConstant.CON0;  // 状态0删除



    // 用户等级的记录
    public static final String IS_SHOP = WebConstant.CON1;  //  用户等级记录：购买
    public static final String NOT_IS_SHOP = WebConstant.CON0; //用户等级记录：养成


    //规则名称 1.每日登陆 2.实名认证 3.爱车认证 4.充电分享 5.充电量 charge_share
    public static final String RULE_TYPE_DAILY_LOGIN = WebConstant.CON1;  //  每日登陆
    public static final String RULE_TYPE_MEMBER_AUTHENTICATION = WebConstant.CON2;  //  实名认证
    public static final String RULE_TYPE_VEHICLE_AUTHENTICATION = WebConstant.CON3;  //  爱车认证
    public static final String RULE_TYPE_CHARGE_SHARE = "4";  //  每日充电分享
    public static final String RULE_TYPE_CHARGE_POWER = "5";  //  充电量

    //登出状态
    public static final String LOGIN_IN = WebConstant.CON1;  //  登入
    public static final String LOGIN_OUT = WebConstant.CON0;  //  登出

    //无效优惠
    public static final int INVALID_DISCOUNT = 0x00;
    //活动电价,一口价
    public static final int ACTIVITY_PRICE = 0x01;
    //首单免
    public static final int FIRST_FREE = 0x02;
    //桩群折扣
    public static final int PILE_GROUP_RELIEF = 0x03;
    //用户等级折扣
    public static final int USER_LEVEL_PRICE = 0x04;
    //企业VIP折扣
    public static final int ENTERPRISE_VIP = 0x05;
    //超级用户等级折扣
    public static final int USER_LEVEL_PRICE_SVIP = 0x06;

    //优惠券
    public static final int TICKET = 0x30;
    //红包
    public static final int RED_PACKET = 0x40;
    //等级积分
    public static final int POWER_EMIRICALVALUE = 0x50;


    /**组合优惠**/

    //桩群折扣+优惠券
    public static final int PILE_GROUP_RELIEF_TICKET = PILE_GROUP_RELIEF+TICKET;
    //折扣折扣+红包
    public static final int PILE_GROUP_RELIEF_RED_PACKET = PILE_GROUP_RELIEF+RED_PACKET;
    //桩群折扣+优惠券+红包
    public static final int PILE_GROUP_RELIEF_TICKET_RED_PACKET = PILE_GROUP_RELIEF+RED_PACKET+RED_PACKET;
    //用户等级折扣+优惠券
    public static final int USER_LEVEL_PRICE_TICKET = USER_LEVEL_PRICE+TICKET;
    //用户等级折扣+红包
    public static final int USER_LEVEL_PRICE_RED_PACKET = USER_LEVEL_PRICE+RED_PACKET;
    //用户等级折扣+优惠券+红包
    public static final int USER_LEVEL_PRICE_TICKET_RED_PACKET = USER_LEVEL_PRICE+RED_PACKET+RED_PACKET;


    public static void main(String[] args) {
        System.out.println(PILE_GROUP_RELIEF_TICKET);
        System.out.println(PILE_GROUP_RELIEF_TICKET_RED_PACKET);
    }
}
